package com.supermarket.api.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 商品属性表
 * @author 李其伟
 * @date 2023/10/19
 */
@Data
@Entity
@Table(name = "sm_product_attribute")
@org.hibernate.annotations.Table(appliesTo = "sm_product_attribute",comment="商品属性表")
public class ProductAttributeEntity extends BaseEntity {

    @Column( name = "sku", columnDefinition = " char(64) not null comment '商品货号' ")
    private String sku;

    @Column(name = "title", columnDefinition = " varchar(256) comment '属性名' ")
    private String title;

    @Column(name = "input_list", columnDefinition = " varchar(512) comment '可选值列表，以逗号隔开' ")
    private String inputList;

    @Column(name = "type", columnDefinition = " int(11) comment '显示类型： 0 横排；1 竖排' ")
    private Integer type = 0;

    @Column(name = "sort", columnDefinition = " int(11) comment '排序' ")
    private Integer sort;


}
